from django.contrib import admin
from .models import AttendanceLog
# Register your models here.

@admin.register(AttendanceLog)
class AttendanceLogAdmin(admin.ModelAdmin):
    # 设置列表显示字段
    list_display = ('id', 'user_id', 'check_type', 'check_time', 'check_status', 'delta_time', 'check_location','remark', 'be_adopted')
    # 设置过滤器字段
    list_filter = ('check_type_id', 'check_status_id', 'be_adopted')
    # 设置可搜索字段
    search_fields = ('check_type', 'check_status', 'check_location', 'remark')